from django.urls import path, re_path
from .views import *


urlpatterns = [
    re_path('^imgcodes/(?P<uuid>[\w-]+)/$', ImageCode.as_view()),
    re_path('^check_imgcode/(?P<uuid>[\w-]+)/$', CheckImgCode.as_view()),
    # re_path('^smscodes/(?P<phone>)1[3-9][0-9]{9}/$', SMScodeView.as_view()),  # 获取不到参数phone
    path('smscodes/<str:phone>/', SMScodeView.as_view()),
    re_path('^check_smscode/(?P<phone>1[3-9]\d{9})/$', CheckSMScode.as_view()),
]
